package com.open.rbac.service.sys;


import java.text.ParseException;

import com.nimbusds.jose.JOSEException;

import com.open.center.jwt.exception.JwtExpiredException;
import com.open.rbac.model.UserInfo;
import com.open.rbac.model.vo.sys.LoginVo;

/**
 * 登录服务
 *
 * @author Riche's
 * @since 2022/8/15
 */
public interface ILoginService {

    UserInfo login(LoginVo loginVo);

    UserInfo verify(String token) throws JwtExpiredException, ParseException, JOSEException;

    UserInfo refresh(String token) throws JwtExpiredException, ParseException, JOSEException;

}
